<?php
/**
 * RewardController is used for management of rewards definition and points assign.
 * 
 * LBB Solutions Oy 版权所有 © 2013
 */
class RewardController extends Controller
{
	/**
	 * @return array action filters
	 */
	public function filters() {
		return array(
			'accessControl', // perform access control for CRUD operations
		);
	}
	
	/**
	 * Specifies the access control rules.
	 * This method is used by the 'accessControl' filter.
	 * @return array access control rules
	 */
	public function accessRules() {
		return array(
			array('allow', // allow authenticated user to perform below actions
				'users'=>array('@'),
			),
			array('deny',  // deny all users
				'users'=>array('*'),
			),
		);
	}
	
	/**
	 * Show layout.
	 */
	public function actionIndex() {
		$model = new RewardForm();
		$this->render('index', array('model'=>$model));
	}
}